import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/home/index.vue'
import Table from '@/components/Table.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    components:{
      default:HomeView,
      footer:Table
    } 
  },
  {
    path: '/kind',
    name: 'kind',
    components:{
      default:() => import('../views/kind/index.vue'),
      footer:Table
    } 
  },
  {
    path: '/cart',
    name: 'cart',
    components:{
      default:() => import('../views/cart/index.vue'),
      footer:Table
    } 
  },
  {
    path: '/my',
    name: 'my',
    components:{
      default:() => import('../views/my/index.vue'),
      footer:Table
    } 
  },
  {
    path: '/login',
    name: 'login',
    components:{
      default:() => import('../views/login/index.vue'),
      footer:Table
    } 
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
